package com.hkfrich.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hkfrich.system.domain.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.awt.*;
import java.util.List;

/**
 * @ClassName SysMenuMapper
 * @Desscription
 * @Author _HeiShuai
 * @Date 2022/8/20 10:19
 * @Version 1.0
 **/
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    //@Select可使用注解开发
    List<String> selectPermsByUserId(@Param("userid") Long userid);

    List<SysMenu> selectMenuListByUserId(SysMenu sysMenu);

    SysMenu checkMenuNameUnique(SysMenu sysMenu);

    int hasChildByMenuId(Long id);

    public List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
}
